home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 January / maximum-cd-2009-01.iso / DiscContents / Utilities.optimize.exe / {app} / Reminder-pack.js < prev    next >
Encoding:
JavaScript  |  2008-01-31  |  54.9 KB  |  384 lines

  1. // Copyright (c) 2008 PC Pitstop LLC
  2.  
  3. if(typeof window.jQuery=="undefined"){window.undefined=window.undefined;var jQuery=function(a,c){if(window==this||!this.init)
  4. return new jQuery(a,c);return this.init(a,c);};if(typeof $!="undefined")
  5. jQuery._$=$;var $=jQuery;jQuery.fn=jQuery.prototype={init:function(a,c){a=a||document;if(jQuery.isFunction(a))
  6. return new jQuery(document)[jQuery.fn.ready?"ready":"load"](a);if(typeof a=="string"){var m=/^[^<]*(<(.|\s)+>)[^>]*$/.exec(a);if(m)
  7. a=jQuery.clean([m[1]]);else
  8. return new jQuery(c).find(a);}
  9. return this.setArray(a.constructor==Array&&a||(a.jquery||a.length&&a!=window&&!a.nodeType&&a[0]!=undefined&&a[0].nodeType)&&jQuery.makeArray(a)||[a]);},jquery:"@VERSION",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(a){var ret=jQuery(a);ret.prevObject=this;return ret;},setArray:function(a){this.length=0;[].push.apply(this,a);return this;},each:function(fn,args){return jQuery.each(this,fn,args);},index:function(obj){var pos=-1;this.each(function(i){if(this==obj)pos=i;});return pos;},attr:function(key,value,type){var obj=key;if(key.constructor==String)
  10. if(value==undefined)
  11. return this.length&&jQuery[type||"attr"](this[0],key)||undefined;else{obj={};obj[key]=value;}
  12. return this.each(function(index){for(var prop in obj)
  13. jQuery.attr(type?this.style:this,prop,jQuery.prop(this,obj[prop],type,index,prop));});},css:function(key,value){return this.attr(key,value,"curCSS");},text:function(e){if(typeof e!="object"&&e!=null)
  14. return this.empty().append(document.createTextNode(e));var t="";jQuery.each(e||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)
  15. t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return t;},wrap:function(){var a,args=arguments;return this.each(function(){if(!a)
  16. a=jQuery.clean(args,this.ownerDocument);var b=a[0].cloneNode(true);this.parentNode.insertBefore(b,this);while(b.firstChild)
  17. b=b.firstChild;b.appendChild(this);});},append:function(){return this.domManip(arguments,true,1,function(a){this.appendChild(a);});},prepend:function(){return this.domManip(arguments,true,-1,function(a){this.insertBefore(a,this.firstChild);});},before:function(){return this.domManip(arguments,false,1,function(a){this.parentNode.insertBefore(a,this);});},after:function(){return this.domManip(arguments,false,-1,function(a){this.parentNode.insertBefore(a,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(t){var data=jQuery.map(this,function(a){return jQuery.find(t,a);});return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(data):data);},clone:function(deep){deep=deep!=undefined?deep:true
  18. var $this=this.add(this.find("*"));if(jQuery.browser.msie){$this.each(function(){this._$events={};for(var type in this.$events)
  19. this._$events[type]=jQuery.extend({},this.$events[type]);}).unbind();}
  20. var r=this.pushStack(jQuery.map(this,function(a){return a.cloneNode(deep);}));if(jQuery.browser.msie){$this.each(function(){var events=this._$events;for(var type in events)
  21. for(var handler in events[type])
  22. jQuery.event.add(this,type,events[type][handler],events[type][handler].data);this._$events=null;});}
  23. if(deep){var inputs=r.add(r.find('*')).filter('select,input[@type=checkbox]');$this.filter('select,input[@type=checkbox]').each(function(i){if(this.selectedIndex)
  24. inputs[i].selectedIndex=this.selectedIndex;if(this.checked)
  25. inputs[i].checked=true;});}
  26. return r;},filter:function(t){return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,index){return t.apply(el,[index])})||jQuery.multiFilter(t,this));},not:function(t){return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){return(t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t;}));},add:function(t){return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||t.nodeName=="FORM")?t:[t]));},is:function(expr){return expr?jQuery.multiFilter(expr,this).length>0:false;},val:function(val){return val==undefined?(this.length?this[0].value:null):this.attr("value",val);},html:function(val){return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val);},domManip:function(args,table,dir,fn){var clone=this.length>1,a;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument);if(dir<0)
  27. a.reverse();}
  28. var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr"))
  29. obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"));jQuery.each(a,function(){if(jQuery.nodeName(this,"script")){if(this.src)
  30. jQuery.ajax({url:this.src,async:false,dataType:"script"});else
  31. (new Function(this.text||this.textContent||this.innerHTML||""))();}else
  32. fn.apply(obj,[clone?this.cloneNode(true):this]);});});}};jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0],a=1;if(arguments.length==1){target=this;a=0;}
  33. var prop;while((prop=arguments[a++])!=null)
  34. for(var i in prop)target[i]=prop[i];return target;};jQuery.extend({noConflict:function(){if(jQuery._$)
  35. $=jQuery._$;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},each:function(obj,fn,args){if(obj.length==undefined)
  36. for(var i in obj)
  37. fn.apply(obj[i],args||[i,obj[i]]);else
  38. for(var i=0,ol=obj.length;i<ol;i++)
  39. if(fn.apply(obj[i],args||[i,obj[i]])===false)break;return obj;},prop:function(elem,value,type,index,prop){if(jQuery.isFunction(value))
  40. value=value.call(elem,[index]);var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(prop)?value+"px":value;},className:{add:function(elem,c){jQuery.each((c||"").split(/\s+/),function(i,cur){if(!jQuery.className.has(elem.className,cur))
  41. elem.className+=(elem.className?" ":"")+cur;});},remove:function(elem,c){elem.className=c!=undefined?jQuery.grep(elem.className.split(/\s+/),function(cur){return!jQuery.className.has(c,cur);}).join(" "):"";},has:function(t,c){return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1;}},swap:function(e,o,f){for(var i in o){e.style["old"+i]=e.style[i];e.style[i]=o[i];}
  42. f.apply(e,[]);for(var i in o)
  43. e.style[i]=e.style["old"+i];},css:function(e,p){if(p=="height"||p=="width"){var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];jQuery.each(d,function(){old["padding"+this]=0;old["border"+this+"Width"]=0;});jQuery.swap(e,old,function(){if(jQuery(e).is(':visible')){oHeight=e.offsetHeight;oWidth=e.offsetWidth;}else{e=jQuery(e.cloneNode(true)).find(":radio").removeAttr("checked").end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];var parPos=jQuery.css(e.parentNode,"position")||"static";if(parPos=="static")
  44. e.parentNode.style.position="relative";oHeight=e.clientHeight;oWidth=e.clientWidth;if(parPos=="static")
  45. e.parentNode.style.position="static";e.parentNode.removeChild(e);}});return p=="height"?oHeight:oWidth;}
  46. return jQuery.curCSS(e,p);},curCSS:function(elem,prop,force){var ret;if(prop=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret;}
  47. if(prop.match(/float/i))
  48. prop=jQuery.styleFloat;if(!force&&elem.style[prop])
  49. ret=elem.style[prop];else if(document.defaultView&&document.defaultView.getComputedStyle){if(prop.match(/float/i))
  50. prop="float";prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();var cur=document.defaultView.getComputedStyle(elem,null);if(cur)
  51. ret=cur.getPropertyValue(prop);else if(prop=="display")
  52. ret="none";else
  53. jQuery.swap(elem,{display:"block"},function(){var c=document.defaultView.getComputedStyle(this,"");ret=c&&c.getPropertyValue(prop)||"";});if(prop=="opacity"&&ret=="")
  54. ret="1";}else if(elem.currentStyle){var newProp=prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});ret=elem.currentStyle[prop]||elem.currentStyle[newProp];}
  55. return ret;},clean:function(a,doc){var r=[];doc=doc||document;jQuery.each(a,function(i,arg){if(!arg)return;if(arg.constructor==Number)
  56. arg=arg.toString();if(typeof arg=="string"){var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||(!s.indexOf("<thead")||!s.indexOf("<tbody")||!s.indexOf("<tfoot")||!s.indexOf("<colg"))&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><colgroup>","</colgroup></table>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--)
  57. div=div.firstChild;if(jQuery.browser.msie){if(!s.indexOf("<table")&&s.indexOf("<tbody")<0)
  58. tb=div.firstChild&&div.firstChild.childNodes;else if(wrap[1]=="<table>"&&s.indexOf("<tbody")<0)
  59. tb=div.childNodes;for(var n=tb.length-1;n>=0;--n)
  60. if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length)
  61. tb[n].parentNode.removeChild(tb[n]);}
  62. arg=jQuery.makeArray(div.childNodes);}
  63. if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select")))
  64. return;if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options)
  65. r.push(arg);else
  66. r=jQuery.merge(r,arg);});return r;},attr:function(elem,name,value){var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(fix[name]){if(value!=undefined)elem[fix[name]]=value;return elem[fix[name]];}else if(jQuery.browser.msie&&name=="style")
  67. return jQuery.attr(elem.style,"cssText",value);else if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method"))
  68. return elem.getAttributeNode(name).nodeValue;else if(elem.tagName){if(value!=undefined)elem.setAttribute(name,value);if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem))
  69. return elem.getAttribute(name,2);return elem.getAttribute(name);}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+
  70. (parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")");}
  71. return elem.filter?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():"";}
  72. name=name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});if(value!=undefined)elem[name]=value;return elem[name];}},trim:function(t){return(t||"").replace(/^\s+|\s+$/g,"");},makeArray:function(a){var r=[];if(typeof a!="array")
  73. for(var i=0,al=a.length;i<al;i++)
  74. r.push(a[i]);else
  75. r=a.slice(0);return r;},inArray:function(b,a){for(var i=0,al=a.length;i<al;i++)
  76. if(a[i]==b)
  77. return i;return-1;},merge:function(first,second){for(var i=0;second[i];i++)
  78. first.push(second[i]);return first;},unique:function(first){var r=[],num=jQuery.mergeNum++;try{for(var i=0,fl=first.length;i<fl;i++)
  79. if(num!=first[i].mergeNum){first[i].mergeNum=num;r.push(first[i]);}}catch(e){r=first;}
  80. return r;},mergeNum:0,grep:function(elems,fn,inv){if(typeof fn=="string")
  81. fn=new Function("a","i","return "+fn);var result=[];for(var i=0,el=elems.length;i<el;i++)
  82. if(!inv&&fn(elems[i],i)||inv&&!fn(elems[i],i))
  83. result.push(elems[i]);return result;},map:function(elems,fn){if(typeof fn=="string")
  84. fn=new Function("a","return "+fn);var result=[];for(var i=0,el=elems.length;i<el;i++){var val=fn(elems[i],i);if(val!==null&&val!=undefined){if(val.constructor!=Array)val=[val];result=result.concat(val);}}
  85. return result;}});new function(){var b=navigator.userAgent.toLowerCase();jQuery.browser={version:(b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(b),opera:/opera/.test(b),msie:/msie/.test(b)&&!/opera/.test(b),mozilla:/mozilla/.test(b)&&!/(compatible|webkit)/.test(b)};jQuery.boxModel=!jQuery.browser.msie||document.compatMode=="CSS1Compat";jQuery.styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat",jQuery.props={"for":"htmlFor","class":"className","float":jQuery.styleFloat,cssFloat:jQuery.styleFloat,styleFloat:jQuery.styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"};};jQuery.each({parent:"a.parentNode",parents:"jQuery.parents(a)",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)"},function(i,n){jQuery.fn[i]=function(a){var ret=jQuery.map(this,n);if(a&&typeof a=="string")
  86. ret=jQuery.multiFilter(a,ret);return this.pushStack(ret);};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(i,n){jQuery.fn[i]=function(){var a=arguments;return this.each(function(){for(var j=0,al=a.length;j<al;j++)
  87. jQuery(a[j])[n](this);});};});jQuery.each({removeAttr:function(key){jQuery.attr(this,key,"");this.removeAttribute(key);},addClass:function(c){jQuery.className.add(this,c);},removeClass:function(c){jQuery.className.remove(this,c);},toggleClass:function(c){jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c);},remove:function(a){if(!a||jQuery.filter(a,[this]).r.length)
  88. this.parentNode.removeChild(this);},empty:function(){while(this.firstChild)
  89. this.removeChild(this.firstChild);}},function(i,n){jQuery.fn[i]=function(){return this.each(n,arguments);};});jQuery.each(["eq","lt","gt","contains"],function(i,n){jQuery.fn[n]=function(num,fn){return this.filter(":"+n+"("+num+")",fn);};});jQuery.each(["height","width"],function(i,n){jQuery.fn[n]=function(h){return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px");};});jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||'').indexOf(m[3])>=0",visible:'"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',hidden:'"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"',enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:'"button"==a.type||jQuery.nodeName(a,"button")',input:"/input|select|textarea|button/i.test(a.nodeName)"},"[":"jQuery.find(m[2],a).length"},parse:[/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+
  90. (jQuery.chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)")+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}
  91. return cur;},find:function(t,context){if(typeof t!="string")
  92. return[t];if(context&&!context.nodeType)
  93. context=null;context=context||document;if(!t.indexOf("//")){t=t.substr(2,t.length);}else if(!t.indexOf("/")&&!context.ownerDocument){context=context.documentElement;t=t.substr(1,t.length);if(t.indexOf("/")>=1)
  94. t=t.substr(t.indexOf("/"),t.length);}
  95. var ret=[context],done=[],last;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t).replace(/^\/\//,"");var foundToken=false;var re=new RegExp("^[/>]\\s*("+jQuery.chars+"+)");var m=re.exec(t);if(m){var nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)
  96. for(var c=ret[i].firstChild;c;c=c.nextSibling)
  97. if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName.toUpperCase()))
  98. r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var nodeName=m[4],mergeNum=jQuery.mergeNum++;m=m[1];for(var j=0,rl=ret.length;j<rl;j++)
  99. if(m.indexOf("..")<0){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)
  100. if(n.nodeType==1){if(m=="~"&&n.mergeNum==mergeNum)break;if(!nodeName||n.nodeName.toUpperCase()==nodeName.toUpperCase()){if(m=="~")n.mergeNum=mergeNum;r.push(n);}
  101. if(m=="+")break;}}else
  102. r.push(ret[j].parentNode);ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}
  103. if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=new RegExp("^("+jQuery.chars+"+)(#)("+jQuery.chars+"+)");var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=new RegExp("^([#.]?)("+jQuery.chars+"*)");m=re2.exec(t);}
  104. m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])
  105. oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")
  106. tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}
  107. if(m[1]==".")
  108. r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)
  109. if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}
  110. r=tmp;}
  111. ret=r;}
  112. t=t.replace(re2,"");}}
  113. if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}
  114. if(t)
  115. ret=[];if(ret&&context==ret[0])
  116. ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)
  117. tmp.push(r[i]);}
  118. return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}
  119. if(!m)
  120. break;if(m[1]==":"&&m[2]=="not")
  121. r=jQuery.filter(m[3],r,true).r;else if(m[1]==".")
  122. r=jQuery.classFilter(r,m[2],not);else if(m[1]=="@"){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src/.test(m[2]))
  123. z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)
  124. tmp.push(a);}
  125. r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var num=jQuery.mergeNum++,tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,last=test[2]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode;if(num!=parentNode.mergeNum){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)
  126. if(n.nodeType==1)
  127. n.nodeIndex=c++;parentNode.mergeNum=num;}
  128. var add=false;if(first==1){if(last==0||node.nodeIndex==last)
  129. add=true;}else if((node.nodeIndex+last)%first==0)
  130. add=true;if(add^not)
  131. tmp.push(node);}
  132. r=tmp;}else{var f=jQuery.expr[m[1]];if(typeof f!="string")
  133. f=jQuery.expr[m[1]][m[2]];eval("f = function(a,i){return "+f+"}");r=jQuery.grep(r,f,not);}}
  134. return{r:r,t:t};},parents:function(elem){var matched=[];var cur=elem.parentNode;while(cur&&cur!=document){matched.push(cur);cur=cur.parentNode;}
  135. return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])
  136. if(cur.nodeType==1&&++num==result)
  137. break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem))
  138. r.push(n);}
  139. return r;}});jQuery.event={add:function(element,type,handler,data){if(jQuery.browser.msie&&element.setInterval!=undefined)
  140. element=window;if(!handler.guid)
  141. handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments);};handler.data=data;handler.guid=fn.guid;}
  142. if(!element.$events)
  143. element.$events={};if(!element.$handle)
  144. element.$handle=function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered)
  145. return val;val=jQuery.event.handle.apply(element,arguments);return val;};var handlers=element.$events[type];if(!handlers){handlers=element.$events[type]={};if(element.addEventListener)
  146. element.addEventListener(type,element.$handle,false);else
  147. element.attachEvent("on"+type,element.$handle);}
  148. handlers[handler.guid]=handler;if(!this.global[type])
  149. this.global[type]=[];if(jQuery.inArray(element,this.global[type])==-1)
  150. this.global[type].push(element);},guid:1,global:{},remove:function(element,type,handler){var events=element.$events,ret,index;if(events){if(type&&type.type){handler=type.handler;type=type.type;}
  151. if(!type){for(type in events)
  152. this.remove(element,type);}else if(events[type]){if(handler)
  153. delete events[type][handler.guid];else
  154. for(handler in element.$events[type])
  155. delete events[type][handler];for(ret in events[type])break;if(!ret){if(element.removeEventListener)
  156. element.removeEventListener(type,element.$handle,false);else
  157. element.detachEvent("on"+type,element.$handle);ret=null;delete events[type];while(this.global[type]&&((index=jQuery.inArray(element,this.global[type]))>=0))
  158. delete this.global[type][index];}}
  159. for(ret in events)break;if(!ret)
  160. element.$handle=element.$events=null;}},trigger:function(type,data,element){data=jQuery.makeArray(data||[]);if(!element)
  161. jQuery.each(this.global[type]||[],function(){jQuery.event.trigger(type,data,this);});else{var val,ret,fn=jQuery.isFunction(element[type]||null);data.unshift(this.fix({type:type,target:element}));if(jQuery.isFunction(element.$handle))
  162. val=element.$handle.apply(element,data);if(!fn&&element["on"+type]&&element["on"+type].apply(element,data)===false)
  163. val=false;if(fn&&val!==false&&!jQuery.nodeName(element,'a')){this.triggered=true;element[type]();}
  164. this.triggered=false;}},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var c=this.$events&&this.$events[event.type],args=[].slice.call(arguments,1);args.unshift(event);for(var j in c){args[0].handler=c[j];args[0].data=c[j].data;if(c[j].apply(this,args)===false){event.preventDefault();event.stopPropagation();val=false;}}
  165. if(jQuery.browser.msie)
  166. event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null;return val;},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault)
  167. return originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)
  168. return originalEvent.stopPropagation();originalEvent.cancelBubble=true;};if(!event.target&&event.srcElement)
  169. event.target=event.srcElement;if(jQuery.browser.safari&&event.target.nodeType==3)
  170. event.target=originalEvent.target.parentNode;if(!event.relatedTarget&&event.fromElement)
  171. event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var e=document.documentElement,b=document.body;event.pageX=event.clientX+(e&&e.scrollLeft||b.scrollLeft||0);event.pageY=event.clientY+(e&&e.scrollTop||b.scrollTop||0);}
  172. if(!event.which&&(event.charCode||event.keyCode))
  173. event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)
  174. event.metaKey=event.ctrlKey;if(!event.which&&event.button)
  175. event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments);},fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},toggle:function(){var a=arguments;return this.click(function(e){this.lastToggle=0==this.lastToggle?1:0;e.preventDefault();return a[this.lastToggle].apply(this,[e])||false;});},hover:function(f,g){function handleHover(e){var p=e.relatedTarget;while(p&&p!=this)try{p=p.parentNode}catch(e){p=this;};if(p==this)return false;return(e.type=="mouseover"?f:g).apply(this,[e]);}
  176. return this.mouseover(handleHover).mouseout(handleHover);},ready:function(f){if(jQuery.isReady)
  177. f.apply(document,[jQuery]);else
  178. jQuery.readyList.push(function(){return f.apply(this,[jQuery])});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document);});jQuery.readyList=null;}
  179. if(jQuery.browser.mozilla||jQuery.browser.opera)
  180. document.removeEventListener("DOMContentLoaded",jQuery.ready,false);if(!window.frames.length)
  181. jQuery(window).load(function(){jQuery("#__ie_init").remove();});}}});new function(){jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,o){jQuery.fn[o]=function(f){return f?this.bind(o,f):this.trigger(o);};});if(jQuery.browser.mozilla||jQuery.browser.opera)
  182. document.addEventListener("DOMContentLoaded",jQuery.ready,false);else if(jQuery.browser.msie){document.write("<scr"+"ipt id=__ie_init defer=true "+"src=//:><\/script>");var script=document.getElementById("__ie_init");if(script)
  183. script.onreadystatechange=function(){if(document.readyState!="complete")return;jQuery.ready();};script=null;}else if(jQuery.browser.safari)
  184. jQuery.safariTimer=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(jQuery.safariTimer);jQuery.safariTimer=null;jQuery.ready();}},10);jQuery.event.add(window,"load",jQuery.ready);};if(jQuery.browser.msie)
  185. jQuery(window).one("unload",function(){var global=jQuery.event.global;for(var type in global){var els=global[type],i=els.length;if(i&&type!='unload')
  186. do
  187. els[i-1]&&jQuery.event.remove(els[i-1],type);while(--i);}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock?this.oldblock:"";if(jQuery.css(this,"display")=="none")
  188. this.style.display="block";}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");if(this.oldblock=="none")
  189. this.oldblock="block";this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){return this.queue(function(){var hidden=jQuery(this).is(":hidden"),opt=jQuery.speed(speed,easing,callback),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)
  190. return jQuery.isFunction(opt.complete)&&opt.complete.apply(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}
  191. if(opt.overflow!=null)
  192. this.style.overflow="hidden";this.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(val.constructor==Number)
  193. e.custom(e.cur(),val);else
  194. e[val=="toggle"?hidden?"show":"hide":val](prop);});});},queue:function(type,fn){if(!fn){fn=type;type="fx";}
  195. return this.each(function(){if(!this.queue)
  196. this.queue={};if(!this.queue[type])
  197. this.queue[type]=[];this.queue[type].push(fn);if(this.queue[type].length==1)
  198. fn.apply(this);});}});jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){jQuery.dequeue(this,"fx");if(jQuery.isFunction(opt.old))
  199. opt.old.apply(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},queue:{},dequeue:function(elem,type){type=type||"fx";if(elem.queue&&elem.queue[type]){elem.queue[type].shift();var f=elem.queue[type][0];if(f)f.apply(elem);}},timers:[],fx:function(elem,options,prop){var z=this;var y=elem.style;z.a=function(){if(options.step)
  200. options.step.apply(elem,[z.now]);if(prop=="opacity")
  201. jQuery.attr(y,"opacity",z.now);else{y[prop]=parseInt(z.now)+"px";if(prop=="height"||prop=="width")
  202. y.display="block";}};z.max=function(){return parseFloat(jQuery.css(elem,prop));};z.cur=function(){var r=parseFloat(jQuery.curCSS(elem,prop));return r&&r>-10000?r:z.max();};z.custom=function(from,to){z.startTime=(new Date()).getTime();z.now=from;z.a();jQuery.timers.push(function(){return z.step(from,to);});if(jQuery.timers.length==1){var timer=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)
  203. if(!timers[i]())
  204. timers.splice(i--,1);if(!timers.length)
  205. clearInterval(timer);},13);}};z.show=function(){if(!elem.orig)elem.orig={};elem.orig[prop]=jQuery.attr(elem.style,prop);options.show=true;z.custom(0,this.cur());if(prop!="opacity")
  206. y[prop]="1px";jQuery(elem).show();};z.hide=function(){if(!elem.orig)elem.orig={};elem.orig[prop]=jQuery.attr(elem.style,prop);options.hide=true;z.custom(this.cur(),0);};z.step=function(firstNum,lastNum){var t=(new Date()).getTime();if(t>options.duration+z.startTime){z.now=lastNum;z.a();if(elem.curAnim)elem.curAnim[prop]=true;var done=true;for(var i in elem.curAnim)
  207. if(elem.curAnim[i]!==true)
  208. done=false;if(done){if(options.display!=null){y.overflow=options.overflow;y.display=options.display;if(jQuery.css(elem,"display")=="none")
  209. y.display="block";}
  210. if(options.hide)
  211. y.display="none";if(options.hide||options.show)
  212. for(var p in elem.curAnim)
  213. jQuery.attr(y,p,elem.orig[p]);}
  214. if(done&&jQuery.isFunction(options.complete))
  215. options.complete.apply(elem);return false;}else{var n=t-this.startTime;var p=n/options.duration;z.now=jQuery.easing[options.easing||(jQuery.easing.swing?"swing":"linear")](p,n,firstNum,(lastNum-firstNum),options.duration);z.a();}
  216. return true;};}});jQuery.fn.extend({loadIfModified:function(url,params,callback){this.load(url,params,callback,1);},load:function(url,params,callback,ifModified){if(jQuery.isFunction(url))
  217. return this.bind("load",url);callback=callback||function(){};var type="GET";if(params)
  218. if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}
  219. var self=this;jQuery.ajax({url:url,type:type,data:params,ifModified:ifModified,complete:function(res,status){if(status=="success"||!ifModified&&status=="notmodified")
  220. self.html(res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this);}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});jQuery.extend({get:function(url,data,callback,type,ifModified){if(jQuery.isFunction(data)){callback=data;data=null;}
  221. return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type,ifModified:ifModified});},getIfModified:function(url,data,callback,type){return jQuery.get(url,data,callback,type,1);},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}
  222. return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxTimeout:function(timeout){jQuery.ajaxSettings.timeout=timeout;},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){s=jQuery.extend({},jQuery.ajaxSettings,s);if(s.data){if(s.processData&&typeof s.data!="string")
  223. s.data=jQuery.param(s.data);if(s.type.toLowerCase()=="get"){s.url+=((s.url.indexOf("?")>-1)?"&":"?")+s.data;s.data=null;}}
  224. if(s.global&&!jQuery.active++)
  225. jQuery.event.trigger("ajaxStart");var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async);if(s.data)
  226. xml.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)
  227. xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xml.setRequestHeader("X-Requested-With","XMLHttpRequest");if(s.beforeSend)
  228. s.beforeSend(xml);if(s.global)
  229. jQuery.event.trigger("ajaxSend",[xml,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}
  230. var status;try{status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status!="error"&&status!="timeout"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified");}catch(e){}
  231. if(s.ifModified&&modRes)
  232. jQuery.lastModified[s.url]=modRes;var data=jQuery.httpData(xml,s.dataType);if(s.success)
  233. s.success(data,status);if(s.global)
  234. jQuery.event.trigger("ajaxSuccess",[xml,s]);}else
  235. jQuery.handleError(s,xml,status);}catch(e){status="parsererror";jQuery.handleError(s,xml,status,e);}
  236. if(s.global)
  237. jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)
  238. jQuery.event.trigger("ajaxStop");if(s.complete)
  239. s.complete(xml,status);if(s.async)
  240. xml=null;}};var ival=setInterval(onreadystatechange,13);if(s.timeout>0)
  241. setTimeout(function(){if(xml){xml.abort();if(!requestDone)
  242. onreadystatechange("timeout");}},s.timeout);try{xml.send(s.data);}catch(e){jQuery.handleError(s,xml,null,e);}
  243. if(!s.async)
  244. onreadystatechange();return xml;},handleError:function(s,xml,status,e){if(s.error)s.error(xml,status,e);if(s.global)
  245. jQuery.event.trigger("ajaxError",[xml,s,e]);},active:0,httpSuccess:function(r){try{return!r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||jQuery.browser.safari&&r.status==undefined;}catch(e){}
  246. return false;},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined;}catch(e){}
  247. return false;},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror")
  248. throw"parsererror";if(type=="script")
  249. (new Function(data))();if(type=="json")
  250. data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)
  251. jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
  252. for(var j in a)
  253. if(a[j]&&a[j].constructor==Array)
  254. jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
  255. s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]));return s.join("&");}});}
  256. jQuery.fn.corner=function(o){function hex2(s){var s=parseInt(s).toString(16);return(s.length<2)?'0'+s:s;};function gpc(node){for(;node&&node.nodeName.toLowerCase()!='html';node=node.parentNode){var v=jQuery.css(node,'backgroundColor');if(v.indexOf('rgb')>=0){rgb=v.match(/\d+/g);return'#'+hex2(rgb[0])+hex2(rgb[1])+hex2(rgb[2]);}
  257. if(v&&v!='transparent')
  258. return v;}
  259. return'#ffffff';};function getW(i){switch(fx){case'round':return width*(1-Math.cos(Math.asin(i/width)));case'cool':return width*(1+Math.cos(Math.asin(i/width)));case'sharp':return width*(1-Math.cos(Math.acos(i/width)));case'bite':return width*(Math.cos(Math.asin((width-i-1)/width)));case'slide':return width*(Math.atan2(i,width/i));case'jut':return width*(Math.atan2(width,(width-i-1)));case'curl':return width*(Math.atan(i));case'tear':return width*(Math.cos(i));case'wicked':return width*(Math.tan(i));case'long':return width*(Math.sqrt(i));case'sculpt':return width*(Math.log((width-i-1),width));case'fray':return width*(i%2);case'dog':return(i&1)?(i+1):width;case'dog2':return(i&2)?(i+1):width;case'dog3':return(i&3)?(i+1):width;case'notch':return width;case'bevel':return i+1;}};o=(o||"").toLowerCase();var keep=/keep/.test(o);var cc=((o.match(/cc:(#[0-9a-f]+)/)||[])[1]);var sc=((o.match(/sc:(#[0-9a-f]+)/)||[])[1]);var width=parseInt((o.match(/(\d+)px/)||[])[1])||10;var re=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var fx=((o.match(re)||['round'])[0]);var edges={T:0,B:1};var opts={TL:/top|tl/.test(o),TR:/top|tr/.test(o),BL:/bottom|bl/.test(o),BR:/bottom|br/.test(o)};if(!opts.TL&&!opts.TR&&!opts.BL&&!opts.BR)
  260. opts={TL:1,TR:1,BL:1,BR:1};var strip=document.createElement('div');strip.style.overflow='hidden';strip.style.height='1px';strip.style.backgroundColor=sc||'transparent';strip.style.borderStyle='solid';return this.each(function(index){var pad={T:parseInt(jQuery.css(this,'paddingTop'))||0,R:parseInt(jQuery.css(this,'paddingRight'))||0,B:parseInt(jQuery.css(this,'paddingBottom'))||0,L:parseInt(jQuery.css(this,'paddingLeft'))||0};if(!keep)this.style.border='none';strip.style.borderColor=cc||gpc(this.parentNode);var cssHeight=jQuery.curCSS(this,'height');for(var j in edges){var bot=edges[j];strip.style.borderStyle='none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');var d=document.createElement('div');var ds=d.style;bot?this.appendChild(d):this.insertBefore(d,this.firstChild);if(bot&&cssHeight!='auto'){if(jQuery.css(this,'position')=='static')
  261. this.style.position='relative';ds.position='absolute';ds.bottom=ds.left=ds.padding=ds.margin='0';if(jQuery.browser.msie)
  262. ds.setExpression('width','this.parentNode.offsetWidth');else
  263. ds.width='100%';}
  264. else{ds.margin=!bot?'-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px':(pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';}
  265. for(var i=0;i<width;i++){var w=Math.max(0,Math.round(getW(i)));var e=strip.cloneNode(false);e.style.borderWidth='0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';bot?d.appendChild(e):d.insertBefore(e,d.firstChild);}}});};jQuery(window).bind("load",function(){jQuery("button,a,label").hover(function(){jQuery(this).addClass("hover")},function(){jQuery(this).removeClass("hover")}).click(function(){jQuery(this).removeClass("hover")}).filter("[@accesskey]").each(function(){var k=this.getAttribute("accesskey").replace(/(\W)/,"\\$1");var e=jQuery(this);e.html(e.html().replace(new RegExp("("+k+")","i"),"<span class='access'>$1</span>"));});jQuery("input[@accesskey]").each(function(){var k=this.getAttribute("accesskey");var lb=jQuery("label[@for='"+this.id+"']");if(lb.length)
  266. lb.html(lb.html().replace(new RegExp("("+k+")","i"),"<span class='access'>$1</span>"));});var access=jQuery("span.access").removeClass("access");var active=0;jQuery(document).keydown(function(e){if(e.keyCode!=18&&!e.altKey||++active>1)
  267. return;access.filter(function(){return this.parentNode.disabled?null:this}).addClass("access");setTimeout(function(){if(active>1){active=1;setTimeout(arguments.callee,250);}else{active=0;access.removeClass("access");}},750);});});function ComEnumerate(enumv,fn,arg)
  268. {arg=arg||[];for(var e=new Enumerator(enumv);!e.atEnd();e.moveNext())
  269. if(fn(e.item(),arg)===false)break;return arg;};function CompileTemplate()
  270. {var fni=[],tmpl=arguments[0],pat=/([@!%$&]){([^}]+)}/g;var cvt={'!':'','&':'EscapeHTML','$':'EscapeQuoted','%':'escapeURI','@':'escapeURIComponent'};var fno=["var r=[]; if (a.constructor!=Array||(a.length && typeof a[0]!='object')) a=[a];"];if(arguments.length>1){fno.push('r.push("'+EscapeQuoted(arguments[0])+'");');tmpl=arguments[1];}
  271. for(var m,last=0;(m=pat.exec(tmpl));last=pat.lastIndex){if(last!=m.index)
  272. fni.push('"'+EscapeQuoted(tmpl.substring(last,m.index))+'"');fni.push(cvt[m[1]]+"("+(/^\w+$/.test(m[2])?"d['"+m[2]+"']":m[2])+")");}
  273. if(last<tmpl.length-1)
  274. fni.push('"'+EscapeQuoted(tmpl.substring(last))+'"');fno.push("for(var i=0;i<a.length;i++){var d=a[i];r.push(''.concat(",fni.join(','),"))}");if(arguments.length>2)
  275. fno.push('r.push("'+EscapeQuoted(arguments[2])+'");');fno.push("return r.join('');");return new Function("a",fno.join(''));};function EscapeQuoted(s)
  276. {return String(s).replace(/[\x00-\x1F\\'"<>\u00FF-\uFFFF]/g,function(c){if("\"'\\".indexOf(c)>=0)return"\\"+c;if(c=='\n')return"\\n";var hex="000"+c.charCodeAt(0).toString(16);return'\\u'+hex.substring(hex.length-4);});};function EscapeHTML(s)
  277. {return String(s).replace(/[\"\'\&\<\>]/g,function(c){return'&#'+c.charCodeAt(0)+';';});};function StackTrace(level,skips)
  278. {function Freeze(item,level)
  279. {var it=typeof(item),ic=(it!="object")?null:item.constructor;if(it=="undefined")return"undef";if(item==null)return"null";if(it=="boolean"||it=="number"||ic==Boolean||ic==Number)
  280. return item.toString();if(it=="string"||ic==String)
  281. return'"'+EscapeQuoted(item)+'"';if(it!="object")return it;if(item.jquery)return"{jQuery#"+item.length+"}";if(item.toSource)return item.toSource();if(ic==Array){if(--level<=0)return"Array";var a=[];for(var i=0;i<item.length;i++)
  282. a.push(arguments.callee(item[i],level));return"["+a.join(",")+"]";}
  283. if(ic==Object){if(--level<=0)return"Object"
  284. var a=[];for(var i in item){if(typeof(item[i])=="function")continue;if(!/^[$\w]+$/.test(i))i='"'+i+'"';a.push(i+':'+arguments.callee(item[i],level));}
  285. return"{"+a.join(",")+"}";}
  286. if(ic==Date)
  287. return'Date("'+item.toString()+'")';if(ic==RegExp)
  288. return"/"+item.source+"/"+(item.global?"g":"")+(item.ignoreCase?"i":"");if(item.tagName)
  289. return"{TAG~"+item.tagName+"}";return"UNKNOWN";};var err,stk=[],lvl=level||1,skp=skips||0;try{var f=arguments.caller.callee;while(f&&skp--)f=f.caller;for(;f;f=f.caller){var args=[],fna=String(f).match(/function\s*([^\(]*)([^\)]+)/);for(var i=0;i<f.arguments.length;i++)
  290. args.push(Freeze(f.arguments[i],lvl));stk.push((fna[1]||"anon")+fna[2]+")("+args.join(",")+")");}}catch(err){}
  291. return stk.join("\n");};Array.prototype.map=function(f){var r=[];for(var i=0;i<this.length;i++)
  292. r[i]=f(this[i],i);return r;};Array.prototype.each=function(f){for(var i=0;i<this.length;i++)
  293. if(f(this[i],i)===false)return false;return true;};Array.prototype.reduceTo=function(v,f)
  294. {for(var i=0;i<this.length;i++)
  295. f.call(v,this[i],i);return v;};Array.prototype.filter=function(f){var r=[];for(var i=0;i<this.length;i++)
  296. if(f(this[i],i))
  297. r.push(this[i]);return r;};Array.prototype.ifEmpty=function(e){return this.length?this:e;};function JSON()
  298. {var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},s={'boolean':function(x){return String(x);},number:function(x){return isFinite(x)?String(x):'null';},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c;}
  299. c=b.charCodeAt();return'\\u00'+
  300. Math.floor(c/16).toString(16)+
  301. (c%16).toString(16);});}
  302. return'"'+x+'"';},object:function(x){if(x){var a=[],b,f,i,l,v;if(x instanceof Array){a[0]='[';l=x.length;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=='string'){if(b){a[a.length]=',';}
  303. a[a.length]=v;b=true;}}}
  304. a[a.length]=']';}else if(x instanceof Object){a[0]='{';for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=='string'){if(b){a[a.length]=',';}
  305. a.push(s.string(i),':',v);b=true;}}}
  306. a[a.length]='}';}else{return;}
  307. return a.join('');}
  308. return'null';}};return{copyright:'(c)2005 JSON.org',license:'http://www.JSON.org/license.html',stringify:function(v){var f=s[typeof v];if(f){v=f(v);if(typeof v=='string'){return v;}}
  309. return null;},parse:function(text){try{return!(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\\.|[^"\\])*"/g,'')))&&eval('('+text+')');}catch(e){return false;}}};};var HKCR=0x80000000,HKCU=0x80000001,HKLM=0x80000002,HKU=0x80000003,HKCC=0x80000005,HKDD=0x80000006;function Registry(opts)
  310. {var err;opts=opts||{};this.LastError=0;this.SRP=null;this.ReadOnly=!opts.ReadWrite;this.SetErrorHandler(opts.ErrorHandler);try{this.WSH=new ActiveXObject("WScript.Shell");}catch(err){this.Error("Unable to create WScript.Shell");}
  311. try{var loc=new ActiveXObject("WbemScripting.SWbemLocator");this.SRP=loc.ConnectServer(null,"root\\default").Get("StdRegProv");}catch(err){this.Error("Unable to open StdRegProv, "+err.description);return null;}}
  312. Registry.prototype={TypeToString:[null,"String","ExpandedString","Binary","DWORD","DWORD",null,"MultiString"],HiveToString:{0x80000000:"HKCR",0x80000001:"HKCU",0x80000002:"HKLM",0x80000003:"HKU",0x80000005:"HKCC",0x80000006:"HKDD"},StringToHive:{"HKCR":0x80000000,"HKCU":0x80000001,"HKLM":0x80000002,"HKU":0x80000003,"HKCC":0x80000005,"HKDD":0x80000006},StringToPerms:{"read":0x20000,"write":0x10026,"delete":0x10000},SetErrorHandler:function(e)
  313. {if(typeof(e)=="function")
  314. this.Error=e;else if(e===false)
  315. this.Error=function(msg){};else
  316. this.Error=function(msg){if(typeof(WScript)!="undefined")
  317. WScript.Echo("Registry: "+msg);else if(typeof(window)!="undefined"&&window.alert)
  318. window.alert("Registry: "+msg);else debugger;};},Close:function()
  319. {this.WSH=null;this.SRP=null;},IsReadOnly:function(){return this.ReadOnly;},toDWORD:function(n){return n&&(n>>>1)*2+(n&1);},_regGet:function(method,h,k,n,m)
  320. {try{if(typeof(h)=="string")
  321. h=this.StringToHive[h];var ip=this.SRP.Methods_.Item(method).InParameters.SpawnInstance_();ip.hDefKey=h;ip.sSubKeyName=k;if(n!=null)ip[method=="CheckAccess"?"uRequired":"sValueName"]=n;var ret=this.SRP.ExecMethod_(method,ip);this.LastError=ret.ReturnValue;if(ret.ReturnValue)
  322. return m;if(method=="CheckAccess")
  323. return ret.bGranted?true:false;if(method.indexOf("Enum")==0)
  324. return ret;return method.indexOf("String")>0?ret.sValue:ret.uValue;}catch(err){this.Error("Read error: "+err.number+"\n  "+err.description+"\n  "+
  325. method+" hive='"+this.HiveToString[h]+"' key='"+k+"' name='"+n+"'");this.LastError=err.number;return null;}},GetKeyNames:function(h,k)
  326. {var ret=this._regGet("EnumKey",h,k);if(!ret)return ret;return ret.sNames==null?[]:ret.sNames.toArray();},GetValueNames:function(h,k)
  327. {var ret=this._regGet("EnumValues",h,k);if(!ret)return ret;return ret.sNames==null?[]:ret.sNames.toArray();},GetValueList:function(h,k)
  328. {var ret=this._regGet("EnumValues",h,k);if(!ret)return ret;var names=ret.sNames!=null?ret.sNames.toArray():[],types=ret.Types!=null?ret.Types.toArray():[],list=[];if(!names.length){var us=this.GetUnExpandedString(h,k,""),xs=this.GetExpandedString(h,k,"");if(typeof(us)=="string"&&typeof(xs)=="string")
  329. return[{Name:"",Type:xs!=us?"ExpandedString":"String"}];return typeof(this.GetDWORD(h,k,""))=="number"?[{Name:"",Type:"DWORD"}]:[];}
  330. for(var i=0;i<names.length;i++)
  331. list[i]={Name:names[i],Type:this.TypeToString[types[i]]};return list;},GetUnExpandedString:function(h,k,n,m)
  332. {if(!this.WSH){this.LastError=1630;return null;}
  333. var err,value;if(typeof(h)!="string")
  334. h=this.HiveToString[h];try{value=this.WSH.RegRead(h+"\\"+k+"\\"+n);}catch(err){this.LastError=err.number||2;value=m;}
  335. return value;},GetString:function(h,k,n,m){return this._regGet("GetStringValue",h,k,n,m);},GetExpandedString:function(h,k,n,m){return this._regGet("GetExpandedStringValue",h,k,n,m);},GetNumber:function(h,k,n,m){return this._regGet("GetDWORDValue",h,k,n,m);},GetDWORD:function(h,k,n,m){return this.toDWORD(this._regGet("GetDWORDValue",h,k,n,m));},GetBoolean:function(h,k,n,m){return this.GetBinaryNumber(h,k,n,m)?true:false;},CheckAccess:function(h,k,perms)
  336. {if(typeof(perms)=="string")
  337. perms=this.StringToPerms[perms.toLowerCase()];return this._regGet("CheckAccess",h,k,perms);},GetBinary:function(h,k,n,m)
  338. {var vba=this._regGet("GetBinaryValue",h,k,n,m);return typeof(vba)=="unknown"&&vba.toArray();},GetBinaryNumber:function(h,k,n,m)
  339. {var vba=this._regGet("GetBinaryValue",h,k,n,m);if(typeof(vba)!="unknown")return vba;var ret=0;for(var i=vba.ubound();i>=0;--i)
  340. ret=(ret*256)+vba.getItem(i);return ret;},GetMultiString:function(h,k,n,m)
  341. {var vba=this._regGet("GetMultiStringValue",h,k,n,m);return typeof(vba)=="unknown"&&vba.toArray();},GetSystemTime:function(h,k,n,m)
  342. {var st=this.GetBinary(h,k,n,m);return st===m||!st||st.length!=16?m:new Date(st[1]*256+st[0],st[2],st[6],st[8],st[10],st[12],st[15]*256+st[14]);},Get:function(h,k,obj){if(arguments.length==1)
  343. obj=h,h=k=null;var n=0;for(var i=0;i<obj.length;i++){var r=obj[i],f=this["Get"+(r.Type||"String")];if(!f)
  344. this.LastError=1630;else
  345. r.Value=f.apply(this,[r.Hive||h,r.Key||k,r.Name,r.Default]);r.Error=this.LastError;if(!r.Error)n++;}
  346. return n;},_regSet:function(method,h,k,n,v)
  347. {try{if(this.ReadOnly)
  348. throw new Error(-1,"Using a read-only Registry object!");if(typeof(h)=="string")
  349. h=this.StringToHive[h];var ip=this.SRP.Methods_.Item(method).InParameters.SpawnInstance_();ip.hDefKey=h;ip.sSubKeyName=k;if(n!=null)ip.sValueName=n;if(v!=null)ip[method.indexOf("String")>0?"sValue":"uValue"]=v;this.LastError=this.SRP.ExecMethod_(method,ip).ReturnValue;return!this.LastError;}catch(err){this.Error("Write error:  "+err.number+"\n  "+err.description+"\n  "+
  350. method+" hive='"+this.HiveToString[h]+"' key='"+k+"' name='"+n+"' value='"+v+"'");this.LastError=err.number;return null;}},CreateKey:function(h,k){return this._regSet("CreateKey",h,k);},DeleteValue:function(h,k,n){return this._regSet("DeleteValue",h,k,n);},SetDWORD:function(h,k,n,v){return this._regSet("SetDWORDValue",h,k,n,v);},SetExpandedString:function(h,k,n,v){return this._regSet("SetExpandedStringValue",h,k,n,v);},SetString:function(h,k,n,v){return this._regSet("SetStringValue",h,k,n,v);},SetNumber:function(){return this.SetDWORD.apply(this,arguments);},SetBoolean:function(){return this.SetBinary.apply(this,arguments);},SetBinaryNumber:function(){return this.SetBinary.apply(this,arguments);},DeleteKey:function(h,k){var sk=this.GetKeyNames(h,k)||[];for(var i=0;i<sk.length;i++)
  351. this.DeleteKey(h,k+"\\"+sk[i]);return this._regSet("DeleteKey",h,k);},SetSystemTime:function(h,k,n,v)
  352. {if(typeof(v)=="number")
  353. v=new Date(v);if(isNaN(v)||!v.getDate)
  354. return null;return this.SetBinary(h,k,n,[v.getFullYear()&0xFF,(v.getFullYear()>>8)&0xFF,v.getMonth()+1,0,v.getDay(),0,v.getDate(),0,v.getHours(),0,v.getMinutes(),0,v.getSeconds(),0,v.getMilliseconds()&0xFF,(v.getMilliseconds()>>8)&0xFF]);},SetBinary:function(h,k,n,v)
  355. {switch(typeof(v)){case"number":v=[v&0xFF,(v>>8)&0xFF,(v>>16)&0xFF,(v>>24)&0xFF];break;case"boolean":v=[v?1:0];break;case"string":v=v.split("");break;case"object":if(v&&v.constructor==Array)break;default:this.Error("SetBinary unhandled type: "+ty);return null;}
  356. var d=new ActiveXObject("Scripting.Dictionary");for(var i=0;i<v.length;i++)
  357. d.Add(i,v[i]);return this._regSet("SetBinaryValue",h,k,n,d.Items());},Set:function(h,k,obj)
  358. {if(arguments.length==1)
  359. obj=h,h=k=null;var n=0;for(var i=0;i<obj.length;i++){var r=obj[i],f=this["Set"+(r.Type||"String")];if(!f)
  360. this.LastError=1630;else
  361. f.apply(this,[r.Hive||h,r.Key||k,r.Name,r.Value]);r.Error=this.LastError;if(!r.Error)n++;}
  362. return n;}};var d=new Date(),mm=d.getMonth()+1,md=d.getDate(),yr=d.getFullYear();var std=yr+(mm<10?"0":"")+mm+(md<10?"0":"")+md;Config={Product:"Optimize",Version:"2.0.0.15 (01-31-2008)",StdDate:std,LogName:"Optimize-"+std+".log",RegRoot:"Software\\PCPitstop\\Optimize2",BaseURL:window.location.href.replace(/\/[^/]*$/,"/"),InetURL:"http://utilities.pcpitstop.com/bwimg/",InfoURL:"http://pcpitstop.com/spycheck/SWDetail.asp?sd=",HelpURL:"http://pcpitstop.com/store/service.asp?pg=",TraceLevel:2,AppData:"",Cleaning:true};if(window.location.protocol=="file:"){Config.BaseURL="http://utilities.pcpitstop.com/optimize2-DEV/";Config.IsDev=true;}
  363. function LOG(level,args)
  364. {if(level<=Config.TraceLevel);Exam.Trace(level,String.prototype.concat.apply("",Array.prototype.slice.call(arguments,1)));};function ReportError(e,silent)
  365. {var url=e.errorUrl||window.location,line=e.errorLine||0,msg=e.errorMessage,stk="",err;try{stk=StackTrace(3,2);}catch(err){}
  366. try{Exam.Trace(0,"[==ERROR==] "+url+" ("+line+") '"+msg+"'\n"+stk);}catch(err){}
  367. if(!silent||Config.IsDev){alert("Error:\n File: "+url+"\n Line: "+line+"\n Message:\n"+msg+"\n"+
  368. (Config.IsDev?stk:""));}
  369. if(!Config.IsDev)try{var img=new Image();var str="line="+line+"&msg="+msg+"&ver="+Config.Version+"&axv="+Exam.Version+"&pfv="+window.external.Version;url="&url="+encodeURIComponent(url);if(str.length+url.length<1000)
  370. str+=url;stk="&stk="+encodeURIComponent(stk);if(str.length+stk.length<1000)
  371. str+=stk;img.src=Config.BaseURL+"error.asp?"+str;}catch(err){}};function Message(str)
  372. {var args=arguments;str=$("#ScriptMessages dfn[@class='"+str+"']").text().replace(/\\n/g,"\n")||str;return str.replace(/{(\d+)}/g,function(t,n){return args[+n]});};function Browser(url,tgt)
  373. {try{var wsh=new ActiveXObject("WScript.Shell");wsh.Run('"'+url+'"',1);}catch(err){Browser.WindowNumber=(Browser.WindowNumber||0)+1;var w=window.open(url,tgt||("W"+Browser.WindowNumber));if(!w)
  374. alert("Unable To Open Window");}
  375. return false;};function AddReminder(result)
  376. {var Affiliate=REG.GetString("HKLM",Config.RegRoot,"Affiliate","0000");if(!Affiliate||Affiliate.indexOf("3")==0)
  377. return;var AppDir=REG.GetString("HKLM",Config.RegRoot,"AppDir");if(!AppDir)
  378. return;REG.SetString("HKLM","Software\\Microsoft\\Windows\\CurrentVersion\\Run","PC Pitstop Optimize2 Reminder",AppDir+"\\Reminder.exe");REG.SetString("HKLM",Config.RegRoot,"LastScanResult",result);var when=new Date();when.setDate(when.getDate()+1);REG.SetSystemTime("HKLM",Config.RegRoot,"NextReminder",when);};function RemoveReminder()
  379. {REG.DeleteValue("HKLM","Software\\Microsoft\\Windows\\CurrentVersion\\Run","PC Pitstop Optimize2 Reminder");REG.DeleteValue("HKLM",Config.RegRoot,"LastScanResult");REG.DeleteValue("HKLM",Config.RegRoot,"NextReminder");return false;};function UninstallApp()
  380. {var AppDir=REG.GetString("HKLM",Config.RegRoot,"AppDir");var wsh=new ActiveXObject("WScript.Shell");wsh.Run('"'+AppDir+'\\unins000.exe"',1);return false;}
  381. if(Config.IsDev)
  382. Config.BaseURL="http://utilities.pcpitstop.com/optimize2/";$(window).bind("load",function(){REG=new Registry({ReadWrite:true});if(REG.GetString("HKLM",Config.RegRoot,"LicenseKey")){RemoveReminder();window.close();return;}
  383. var err,bnl;try{eval("bnl="+REG.GetString("HKLM",Config.RegRoot,"LastScanResult","null"))}catch(err){};if(!bnl){window.close();return;}
  384. $("#Uninstaller").bind("click",function(){UninstallApp();window.close();return false;});window.frames.BuyNowReport.GenerateReport(bnl,function(){window.parent.close();});});